package com.tudouji.project.organization.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tudouji.framework.aspectj.lang.annotation.Excel;
import com.tudouji.framework.web.domain.BaseEntity;
import io.swagger.models.auth.In;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 组织管理对象 organization
 * 
 * @author tudouji
 * @date 2020-12-28
 */
@Data
public class Organization
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    private String guid;

    /** 组织名称 */
    @Excel(name = "组织名称")
    private String name;

    /** 组织类型 */
    @Excel(name = "组织类型")
    private Integer type;

    /** 操作人 */
    private String operatorid;

    /** 品类id */
    private String categoryids;

    private Integer[] cateIds;

    /** 状态 */
    @Excel(name = "状态")
    private Integer status;

    /** 全称 */
    @Excel(name = "全称")
    private String fullname;

    /** 金蝶编号 */
    @Excel(name = "金蝶编号")
    private String kingdeenum;

    /** 美团编号 */
    @Excel(name = "美团编号")
    private String mtCode;

    /** 同步日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "同步日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date synchtime;

    /** 同步信息 */
    @Excel(name = "同步信息")
    private String synchinfo;

    /** 同步状态 */
    @Excel(name = "同步状态")
    private Integer synchstat;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime;

    private String remark;

    private String categorynames;

    public void setGuid(String guid) 
    {
        this.guid = guid;
    }

    public String getGuid() 
    {
        return guid;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setOperatorid(String operatorid) 
    {
        this.operatorid = operatorid;
    }

    public String getOperatorid() 
    {
        return operatorid;
    }
    public void setCategoryids(String categoryids) 
    {
        this.categoryids = categoryids;
    }

    public String getCategoryids() 
    {
        return categoryids;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setFullname(String fullname) 
    {
        this.fullname = fullname;
    }

    public String getFullname() 
    {
        return fullname;
    }
    public void setKingdeenum(String kingdeenum) 
    {
        this.kingdeenum = kingdeenum;
    }

    public String getKingdeenum() 
    {
        return kingdeenum;
    }
    public void setSynchtime(Date synchtime) 
    {
        this.synchtime = synchtime;
    }

    public Date getSynchtime() 
    {
        return synchtime;
    }
    public void setSynchinfo(String synchinfo) 
    {
        this.synchinfo = synchinfo;
    }

    public String getSynchinfo() 
    {
        return synchinfo;
    }
    public void setSynchstat(Integer synchstat) 
    {
        this.synchstat = synchstat;
    }

    public Integer getSynchstat() 
    {
        return synchstat;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getCategorynames() {
        return categorynames;
    }

    public void setCategorynames(String categorynames) {
        this.categorynames = categorynames;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("guid", getGuid())
            .append("name", getName())
            .append("type", getType())
            .append("remark", getRemark())
            .append("operatorid", getOperatorid())
            .append("createtime", getCreatetime())
            .append("categoryids", getCategoryids())
            .append("status", getStatus())
            .append("fullname", getFullname())
            .append("kingdeenum", getKingdeenum())
            .append("synchtime", getSynchtime())
            .append("synchinfo", getSynchinfo())
            .append("synchstat", getSynchstat())
            .toString();
    }
}
